package com.ruoyi.data.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.data.mapper.BondCbAdjLogsJslMapper;
import com.ruoyi.data.domain.BondCbAdjLogsJsl;
import com.ruoyi.data.service.IBondCbAdjLogsJslService;
import com.ruoyi.common.core.text.Convert;

/**
 * 价格调整Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-02
 */
@Service
public class BondCbAdjLogsJslServiceImpl implements IBondCbAdjLogsJslService 
{
    @Autowired
    private BondCbAdjLogsJslMapper bondCbAdjLogsJslMapper;

    /**
     * 查询价格调整
     * 
     * @param id 价格调整ID
     * @return 价格调整
     */
    @Override
    public BondCbAdjLogsJsl selectBondCbAdjLogsJslById(Long id)
    {
        return bondCbAdjLogsJslMapper.selectBondCbAdjLogsJslById(id);
    }

    /**
     * 查询价格调整列表
     * 
     * @param bondCbAdjLogsJsl 价格调整
     * @return 价格调整
     */
    @Override
    public List<BondCbAdjLogsJsl> selectBondCbAdjLogsJslList(BondCbAdjLogsJsl bondCbAdjLogsJsl)
    {
        return bondCbAdjLogsJslMapper.selectBondCbAdjLogsJslList(bondCbAdjLogsJsl);
    }

    /**
     * 新增价格调整
     * 
     * @param bondCbAdjLogsJsl 价格调整
     * @return 结果
     */
    @Override
    public int insertBondCbAdjLogsJsl(BondCbAdjLogsJsl bondCbAdjLogsJsl)
    {
        return bondCbAdjLogsJslMapper.insertBondCbAdjLogsJsl(bondCbAdjLogsJsl);
    }

    /**
     * 修改价格调整
     * 
     * @param bondCbAdjLogsJsl 价格调整
     * @return 结果
     */
    @Override
    public int updateBondCbAdjLogsJsl(BondCbAdjLogsJsl bondCbAdjLogsJsl)
    {
        return bondCbAdjLogsJslMapper.updateBondCbAdjLogsJsl(bondCbAdjLogsJsl);
    }

    /**
     * 删除价格调整对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBondCbAdjLogsJslByIds(String ids)
    {
        return bondCbAdjLogsJslMapper.deleteBondCbAdjLogsJslByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除价格调整信息
     * 
     * @param id 价格调整ID
     * @return 结果
     */
    @Override
    public int deleteBondCbAdjLogsJslById(Long id)
    {
        return bondCbAdjLogsJslMapper.deleteBondCbAdjLogsJslById(id);
    }
}
